package rohyunji;

import java.awt.BorderLayout;
import java.awt.CardLayout;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;

import javax.swing.DefaultComboBoxModel;
import javax.swing.JButton;
import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
import javax.swing.JRadioButton;
import javax.swing.JTextField;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class AnnounceSVC extends JPanel{
	private JTextField textField;
	private JTextField textField_1;
	private JComboBox comboBox_1;


	public AnnounceSVC
	(final CardLayout menu2AreaCard, final JPanel menuArea2,final CardLayout rightCard,final JPanel right_area) {
		// TODO Auto-generated constructor stub
		JButton lbtn = new JButton("기업확인");
		add(lbtn);
		JButton lbtn2 = new JButton("공고등록");
		add(lbtn2);
		
		lbtn.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			
			//로그아웃 처리시 다시 로그인전으로 되돌림
				rightCard.show(right_area, "rightcard2");
				menu2AreaCard.show(menuArea2, "menuP");
			}});
		lbtn2.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent e) {
			
				JPanel notice=new CreateAnnounce(menu2AreaCard,menuArea2,rightCard,right_area);
				
				right_area.add(notice,"notice");
				rightCard.show(right_area,"notice");
			}});
	}

	
	
	

	

	
}
